<template>
  <div>
    <!-- v-bind 标签属性绑定vue数据变量 -->
    <!-- <a v-bind:href="url">百度试试</a> -->
    <!-- <img v-bind:src="imgUrl" alt=""> -->
    <!-- v-bind 简写为: -->
    <a :href="url">百度试试</a>
    <br>
    <img :src="imgUrl" alt="">
  </div>
</template>

<script>
export default {
  data (){
    return {
      url:'https://www.baidu.com',
      imgUrl:'https://www.baidu.com/img/540x258_2179d1243e6c5320a8dcbecd834a025d.png'
    }
  }
}
</script>

<style>

</style>